<div class="dux-page-header uk-clearfix">
    <div class="page-title">
        <a class="uk-button uk-button-primary" href="{url('index')}"> 返回列表</a>
    </div>
    <div class="page-action">
        <a class="uk-button uk-button-danger" href="javascript:location.reload();"><i class="fa fa-refresh"></i></a>
    </div>
</div>

<div class="uk-margin-top">
    <div class="uk-card uk-card-small uk-card-default dux-panel">
        <div class="uk-card-header">{$assignName}广告位</div>
        <div class="uk-card-body">
            <form class="dux-form uk-form  uk-form-horizontal  " data-dux="form-bind" method="post">
                <fieldset>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">区域名称</label>
                        <div class="uk-form-controls">
                            <input type="text" name="name" value="{$info.name}" placeholder="请输入广告区域名称" required>
                        </div>
                    </div>
                    <div class="uk-form-group">
                        <label class=" uk-form-label">区域标识</label>
                        <div class="uk-form-controls">
                            <input type="text" name="label" value="{$info.label}" placeholder="方便广告区域调用不可重复" required>
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <label class=" uk-form-label">状态</label>
                        <div class="uk-form-controls">
                            <div class="uk-grid">
                                <?php if(!isset($info['status'])) $info[ 'status']=1 ; ?>
                                <label>
                                    <!--if{$info['status']}-->
                                    <input name="status" checked="checked" value="1" type="radio"  class="uk-radio" >
                                    <!--{else}-->
                                    <input  name="status" value="1" type="radio"  class="uk-radio" >
                                    <!--{/if}-->
                                    正常
                                </label>

                                <label>
                                    <!--if{!$info['status']}-->
                                    <input name="status" value="0" checked="checked" type="radio"  class="uk-radio" >
                                    <!--{else}-->
                                    <input name="status" value="0" type="radio"  class="uk-radio" >
                                    <!--{/if}-->
                                    禁用
                                </label>
                            </div>
                        </div>
                    </div>

                    <div class="uk-form-group">
                        <div class="uk-form-controls">
                            <input type="hidden" name="region_id" value="{$info.region_id}">
                            <button class="uk-button uk-button-primary" type="submit" disabled>保存</button>
                        </div>
                    </div>

                </fieldset>
            </form>
        </div>
    </div>
</div>